@echo off
chcp 65001 >nul
setlocal

echo ========================================
echo   英文文档翻译工具 - 便携版启动
echo ========================================

REM 设置便携Python路径
set PYTHON_HOME=%~dp0python_portable
set PATH=%PYTHON_HOME%;%PATH%

REM 检查Python是否存在
if not exist "%PYTHON_HOME%\python.exe" (
    echo 错误: 未找到便携Python环境
    echo 请确保 python_protable 目录存在且包含python.exe
    pause
    exit /b 1
)


REM 运行应用
echo 启动PyQt应用...
"%PYTHON_HOME%\python.exe" run_pyqt_app.py

pause